<nav class="navbar navbar-default navbar-fixed-top active" style="box-shadow: 0px 1px 10px #ccc;">
    <div class="container active">

        <div class="navbar-header">
            <a style="background: transparent;margin-top: -15px" class="navbar-brand" href="__ROOT__/">
                <img height="50" src="/static/images/logo.png">
            </a>
        </div>

        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul id="main-menu" class="nav navbar-nav">
                <navigation nav-id="" root="" id="main-navigation" class="nav navbar-nav navbar-nav-custom"
                            max-level="0">
                    <navigationMenu root="li" class="menu-item menu-item-level-{$level} index_page">
                        <a href="/" target="{$menu.target|default=''}">
                            首页
                        </a>
                    </navigationMenu>

                    <navigationMenu root="li" class="menu-item menu-item-level-{$level} ">
                        <a href="{:url('portal/index/distribute_sign')}" target="{$menu.target|default=''}">
                            内测分发
                        </a>
                    </navigationMenu>

                    <navigationMenu root="li" class="menu-item menu-item-level-{$level} ">
                        <a href="{:url('portal/index/supper_sign')}" target="{$menu.target|default=''}">
                            超级签名
                        </a>
                    </navigationMenu>
                    <navigationMenu root="li" class="menu-item menu-item-level-{$level} index_page_gz ">
                        <a href="{:url('portal/index/about')}" target="{$menu.target|default=''}">
                            法律法规
                        </a>
                    </navigationMenu>
                    <navigationMenu root="li" class="menu-item menu-item-level-{$level} index_page_gz ">
                        <a href="tencent://message/?uin=97013266&Site=https://www.371.li&Menu=yes}" target="{$menu.target|default=''}">
                            客服
                        </a>
                    </navigationMenu>
                    <navigationFolder root="li"
                                      class="dropdown dropdown-custom dropdown-custom-level-{$level}"
                                      dropdown="ul"
                                      dropdown-class="dropdown-menu dropdown-menu-level-{$level}">
                        <a href="#" class="dropdown-toggle dropdown-toggle-{$level}" data-toggle="dropdown">
                            {$menu.name|default=''}
                            <span class="caret"></span>
                        </a>
                    </navigationFolder>
                </navigation>
            </ul>
            
            <ul class="nav navbar-nav navbar-right" id="main-menu-user">
                <!--
                <li class="login">
                    <a class="dropdown-toggle notifactions" href="/index.php/user/notification/index"> <i
                            class="fa fa-envelope"></i> <span class="count">0</span></a>
                </li>
                -->
                <php>
                    $user=cmf_get_current_user();
                    if($user){
                    $is_login = 1;
                    }else{
                    $is_login = 0;
                    }
                </php>
                        
            <div class="dev-aa" style="">
                <a href="{:url('user/tube/index')}" target="{$menu.target|default=''}" style="">
                        控制台
                </a>
            </div>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
                <if condition="$is_login eq 1">
                    <li class="dropdown user login" style="display: block">
                        <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
                            <if condition="empty($user['avatar'])">
                                <img src="__TMPL__/public/assets/images/admin1.png" class="headicon">
                                <else/>
                                <img src="{$user['avatar']}" onerror='this.src="__TMPL__/public/assets/images/admin1.png"' class="headicon" width="30"/>
                            </if>
                            <span class="user-nickname"></span><b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="{:cmf_url('user/Profile/center')}"><i class="fa fa-user"></i> &nbsp;个人中心</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="{:cmf_url('user/Index/logout')}"><i class="fa fa-sign-out"></i> &nbsp;退出</a>
                            </li>
                        </ul>
                    </li>
                    <else/>
                    <li class="dropdown user offline" style="display: list-item;">
                        <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
                            <img width="30" height="30" src="__TMPL__/public/assets/images/admin1.png" class="headicon">
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="{:cmf_url('user/Login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a></li>
                            <li class="divider"></li>
                            <li><a href="{:cmf_url('user/Register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a></li>
                        </ul>
                    </li>
                </if>


            </ul>
        </div>
    </div>
</nav>
